<html><head><title>PreviousElement</title></head>
<body bgcolor="#FFFFDF" link="#009999" vlink="#006666" alink="#006666">
<font face="Arial" size="2"><p align="center"><b><font size="4">PreviousElement()</font></b></p>
<p><b>Syntax</b></p><blockquote>
Result = <font color="#006666"><b>PreviousElement</b></font>(List()) </blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Moves from the current element to the previous element in the list. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>List()</i></td>
<td width="90%"> 
The name of your list variable, created with the <a href="../reference/newlist.html">NewList</a> function. 
You must include the brackets after the list name. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>

Returns the address of the data in the previous list element if successful and zero 
if there if there is no previous element. 

</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#006666">NewList</font></b> <font color="#006666">Numbers</font>.w()

  <b><font color="#006666">For</font></b> i=1 <b><font color="#006666">To</font></b> 10
<font color="#006666">    AddElement</font>(<font color="#006666">Numbers</font>())
<font color="#006666">    Numbers</font>() = i
  <b><font color="#006666">Next</font></b>

  <b><font color="#006666">Repeat</font></b>
<font color="#006666">    MessageRequester</font>("Number",<font color="#006666"> Str</font>(<font color="#006666">Numbers</font>()), <font color="#924B72">#PB_MessageRequester_OK</font>)
  <b><font color="#006666">Until</font></b> <font color="#006666">PreviousElement</font>(<font color="#006666">Numbers</font>()) = 0
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="nextelement.html">NextElement()</a>, 
<a href="firstelement.html">FirstElement()</a>, <a href="lastelement.html">LastElement()</a>, 
<a href="selectelement.html">SelectElement()</a>, <a href="listindex.html">ListIndex()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=poplistposition.html>PopListPosition()</a> - <a href=index.html>List Index</a> - <a href=pushlistposition.html>PushListPosition()</a> ->

</body></html>